/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tnviet.proj.jna.textgroup;

/**
 *
 * @author Administrator
 */
public interface FieldValidator
{
	/*
	**  The text string will contain:
	**  the current contents of the document,
	**  less selected text about to be deleted,
	**  plus the character about to be added.
	*/
	public boolean isValid(String text);

	/*
	**  Message explaining why last character typed was rejected
	*/
	public String getMessage();
}